﻿using System.Collections.Generic;
using SharpArch.Core.PersistenceSupport;
using SharpArch.Core;
using NHibernate.Validator;

namespace Quiziqal.Domain
{
    public class User : PersistentObject
    {
        public User() { }

        public User(string username)
        {
            Username = username;
        }

        [DomainSignature]
        [NotNullNotEmpty]
        public virtual string Username { get; protected set; }

        [Email]
        public virtual string Email { get; set; }
    }
}
